import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false
//导入vant.js
import './utils/vant.js'
//导入amfe-flexible包,作用:自动设置rem(html的fontSize)为当前屏幕的1/10
import 'amfe-flexible'

//全局过滤器
//导入moment
import moment from 'moment'
// 注册
moment.locale('zh-cn')
Vue.filter('fromNow', function (value) {
  // 返回处理后的值
  return moment(value).fromNow()
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
